//
//  TypeItemCell.m
//  Cycling
//
//  Created by 迟国强 on 2023/4/5.
//

#import "TypeItemCell.h"

@interface TypeItemCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLbl;
@property (weak, nonatomic) IBOutlet UIView *selectBackgroundView;

@end

@implementation TypeItemCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.layer.cornerRadius = 5;
}

- (void)setName:(NSString *)name
{
    _nameLbl.text = name;
}

- (void)setHasSelect:(BOOL)hasSelect
{
    _selectBackgroundView.hidden = !hasSelect;
    _nameLbl.highlighted = hasSelect;
}

@end
